﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SportsStore.Domain.Abstract;
using SportsStore.Domain.Concrete;
using SportsStore.Domain.Entities;

namespace SportsStore.WebUI.Controllers
{
    public static class GetCategories
    {
        private static ICategoryRepository repository = new EFCategoryRepository();
        
        public static IEnumerable<Category> AllCategories()
        {
            return repository.Categories;
        }

    }
}